# Contributor: Edwin Eefting <edwin@datux.nl>
# Maintainer: Julie Koubova <julie@koubova.net>
pkgname=py3-zfs-autobackup
pkgver=3.2.2
pkgrel=0
pkgdesc="ZFS autobackup is used to periodically backup ZFS filesystems to other locations."
url="https://github.com/psy0rz/zfs_autobackup"
arch="noarch"
license="GPL-3.0-only"
depends="py3-colorama"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
source="$pkgname-$pkgver.tar.gz::https://github.com/psy0rz/zfs_autobackup/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/zfs_autobackup-$pkgver"
subpackages="$pkgname-pyc"
options="!check" # tests need ZFS installed and root access to create RAM-disk zpools

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		"$builddir"/.dist/*.whl
}

sha512sums="
48aaf51d89a649caeccb57cef75b4e09a325106ac6fdc63f85fe70b2961e6b42c64dfbbfc8f2ae1d1b4b0628747ed91969bed4b376d2f1f3d07fbea15ff5b3a2  py3-zfs-autobackup-3.2.2.tar.gz
"
